<!DOCTYPE html>
<html>
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">

    <title> Forgot password</title>
    <!-- Font Awesome Icons -->
    <link href="__PUBLIC__/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link href="__PUBLIC__/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />

    <link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />

    <link href="__PUBLIC__/dist/css/custom/animate.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/custom/style.css" rel="stylesheet">

    <link rel="stylesheet" href="__PUBLIC__/dist/css/bootstrapValidator.css"/>
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body class="gray-bg ">

<div class="passwordBox animated fadeInDown">
    <div class="row">

        <div class="col-md-12">
            <div class="ibox-content">

                <h2 class="font-bold">Forgot password</h2>

                <p>
                    Congratulations you have passed the test, please enter a new password!
                </p>

                <div class="row">

                    <div class="col-lg-12">
                        <form class="m-t" role="form" action="__URL__/changePassword" id="forgotPasswordForm" method="post">

                            <div class="form-group  ">
                                <input type="password" name="password" class="form-control " placeholder="Password" >
                            </div>
                            <div class="form-group  ">
                                <input type="password" name="confirmPassword" class="form-control " placeholder="ConfirmPassword" >
                            </div>

                            <input type="hidden" name="id" value="{$_REQUEST['uid']}" />
                            <button type="submit" class="btn btn-primary block full-width m-b">Save Password</button>

                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <hr>
    <div class="row">
        <div class="col-md-9">
            Copyright Phalanx Holding  Company
        </div>
        <div class="col-md-3 text-right">
            <small>© 2014-2015</small>
        </div>
    </div>
</div>
<!--<script src="__PUBLIC__/plugins/jQuery/jQuery-2.1.4.min.js"></script>-->
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="__PUBLIC__/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<!-- iCheck -->
<script src="__PUBLIC__/dist/js/bootstrapValidator.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/dist/js/language/zh_CN.js" type="text/javascript"></script>
<script src="__PUBLIC__/dist/js/validator.js" type="text/javascript"></script>

<script type="text/javascript">

<!-- /^(?=.*[0-9])(?=.*[a-z])(?=.*[@#$%^&~!?_+=\.])(?=\S+$).{6,20}$/ -->
    jQuery(document).ready(function() {
        $('#forgotPasswordForm').bootstrapValidator({
            message: 'This value is not valid',
            feedbackIcons: {
                valid: 'glyphicon glyphicon-ok',
                invalid: 'glyphicon glyphicon-remove',
                validating: 'glyphicon glyphicon-refresh'
            },
            fields: {
                password: {
                    validators: {
                        notEmpty: {
                            message: 'The password is required and cannot be empty'
                        }
                        ,
                        regexp: {
                            regexp: /^(?=.*[0-9])(?=.*[a-z])(?=\S+$).{6,20}$/,
                            message: 'Passwords are made up of letters and numbers, and the length is 6-20. For example: 123qwe'
                        }
                    }
                },
                confirmPassword: {
                    validators: {
                        notEmpty: {
                            message: 'The confirm password is required and cannot be empty'
                        },
                        identical: {
                            field: 'password',
                            message: 'The password and its confirm are not the same'
                        }
                    }
                }

            }
        });
    });
</script>


</body>
</html>